<%-- 
    Document   : header
    Created on : Aug 23, 2013, 7:18:49 AM
    Author     : Tung An
--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %>
<div id="header" class="header clearfix">
    <div class="logo">
        <a href="/"><img src="images/site-logo.png"/></a>
    </div>
    <div class="search-wrapper clearfix">
        <input id="keyword-input" type="text" name="keyword" placeholder="Search..."/>
        <div class="search-button" data="search"></div>
        <div class="result-wrapper box">
            <ul id="top-result-list" class="result-list">
            </ul>
        </div>
    </div>
    <div id="account-wrapper" class="account-wrappper">
        <div data="create-look" class="button create">Create</div>
        <c:choose>
            <c:when test="${not empty sessionScope.account}">
                <c:set var="xmldoc" value="${sessionScope.account}"/>
                <c:import url="/templates/account.xsl" var="xsldoc"/>
                <x:transform xml="${xmldoc}" xslt="${xsldoc}"/>
            </c:when>
            <c:otherwise>
                <div data="gologin" class="button login">Sign in</div>
            </c:otherwise>
        </c:choose>
    </div>
</div>

